#include <iostream>

using namespace std;

int main()
{
	char *p=new char[10];  //等价于char *p=malloc(10*sizeof(char));
	char *q=new char(65);  //等价于char *q=malloc(sizeof(char))    *q=10;
	cout<<*q<<endl;
	char *y=new char;  //等价于char *y=malloc(sizeof(char));
	
	int *pp=new int;
	int *qq=new int[5];
	int *yy=new int(4);
	
	//释放  注意写法
	delete []p;
	delete q;
	delete y;
	
	delete pp;
	delete []qq;
	delete yy;
}